package lambada;

public class LambdaDemo3 {
    public static void main(String[] args) {
        Shop shop = new Shop();
        new Thread(shop::buy).start();
        new Thread(Shop::doSome).start();
    }
}
class  Shop{
    public static void doSome(){
        System.out.println("doSome");
    }

    public void buy() {
        System.out.println("buy");
    }
}